package com.fengwk.support.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("constant.support")
public class SupportConstant {

	public static final String CHARSET_UTF8 = "utf-8";
	public static final String CHARSET_GB2312 = "gb2312";
	public static final String CHARSET_GBK = "gbk";
	
	public static final String DEFAULT_CHARSET = CHARSET_UTF8;
	
	public static final int DEFAULT_MYBATIS_FOREACH_GROUP_SIZE = 500;
	
	public static Long MSG_CHANNEL;
	
	public static final String CONNECTION_SECRET_KEY_KEY = "connectSecretKey";// 通讯秘钥键
	public static String CONNECTION_SECRET_KEY_VALUE; // 通讯秘钥值,
	
	public static void setMsgChannel(Long msgChannel) {
		MSG_CHANNEL = msgChannel;
	}

	public static void setConnectionSecretKey(String connectionSecretKey) {
		CONNECTION_SECRET_KEY_VALUE = connectionSecretKey;
	}
	
}
